<?php

function get_room_ids(){

$all_rooms = json_decode(
	'{
    "success": true,
    "data": [
        {
            "id": "ec5802b8-a24d-4456-9e72-a3a5fa28e68f",
            "name": "102Deluxe Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "119a47c1-fd64-416a-a1d7-97f26a4773cc",
                    "room_no": "102",
                    "room_id": "ec5802b8-a24d-4456-9e72-a3a5fa28e68f"
                }
            ]
        },
        {
            "id": "3a8008a1-2baa-45d3-8a7f-2f32e7a19f28",
            "name": "202Deluxe Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "dfcf25db-b839-4d69-bc1f-b00934fedce8",
                    "room_no": "202",
                    "room_id": "3a8008a1-2baa-45d3-8a7f-2f32e7a19f28"
                }
            ]
        },
        {
            "id": "c92f02e9-622b-4379-830e-9f9616350251",
            "name": "301Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "3bc5a5dd-e432-4b48-9c1e-9348097bb0f5",
                    "room_no": "301",
                    "room_id": "c92f02e9-622b-4379-830e-9f9616350251"
                }
            ]
        },
        {
            "id": "7fb2fb12-1781-4c7f-aa68-b7396fc5c80a",
            "name": "302Deluxe  Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "6cd2d9df-9763-46b2-a139-eec35bdbef43",
                    "room_no": "302",
                    "room_id": "7fb2fb12-1781-4c7f-aa68-b7396fc5c80a"
                }
            ]
        },
        {
            "id": "ac6d2928-3f44-4964-9bd5-c118b8a01c5a",
            "name": "303 Twin Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "bdc09927-0602-4470-9d2a-0537f36c38e4",
                    "room_no": "303",
                    "room_id": "ac6d2928-3f44-4964-9bd5-c118b8a01c5a"
                }
            ]
        },
        {
            "id": "032a58a7-5841-484f-bd68-2bb078a6bbad",
            "name": "401Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "13ffea48-8f7f-486e-bb29-5c50e538a6e3",
                    "room_no": "401",
                    "room_id": "032a58a7-5841-484f-bd68-2bb078a6bbad"
                }
            ]
        },
        {
            "id": "ddd56139-1823-452d-b78e-2c0398ace822",
            "name": "402Deluxe Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "fc9680c1-90be-4d48-b745-3c028f7a2af7",
                    "room_no": "402",
                    "room_id": "ddd56139-1823-452d-b78e-2c0398ace822"
                }
            ]
        },
        {
            "id": "5a348240-30f0-44fc-996a-f5754fa43f79",
            "name": "403 Twin  Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "e8d2e4c4-2dcf-4395-9e24-a0a09009eb48",
                    "room_no": "403",
                    "room_id": "5a348240-30f0-44fc-996a-f5754fa43f79"
                }
            ]
        },
        {
            "id": "412dcb93-22b1-4c7f-b229-679081fa5bec",
            "name": "501Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "18306266-f2f2-44b4-b2b3-8cf29518d0da",
                    "room_no": "501",
                    "room_id": "412dcb93-22b1-4c7f-b229-679081fa5bec"
                }
            ]
        },
        {
            "id": "40aff30b-2f7e-4f6b-b9f0-9e4dc3326d4d",
            "name": "502Deluxe Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "e358fdb1-0d47-44a1-bc16-9a149b21c62e",
                    "room_no": "502",
                    "room_id": "40aff30b-2f7e-4f6b-b9f0-9e4dc3326d4d"
                }
            ]
        },
        {
            "id": "dc704e47-97eb-404a-a53c-09dd5bd84b6f",
            "name": "503 Twin Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "162b7863-9f91-4067-9d88-0b2328f1025e",
                    "room_no": "503",
                    "room_id": "dc704e47-97eb-404a-a53c-09dd5bd84b6f"
                }
            ]
        },
        {
            "id": "8d274a96-080f-45c7-9151-8b77ab12fb3d",
            "name": "601Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "470c8b3b-9db9-4952-8d27-3b769beeab40",
                    "room_no": "601",
                    "room_id": "8d274a96-080f-45c7-9151-8b77ab12fb3d"
                }
            ]
        },
        {
            "id": "67478838-18b3-45f1-8452-79256a604348",
            "name": "602Deluxe  Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "13fbb54d-1815-417e-973e-da7ede662019",
                    "room_no": "602",
                    "room_id": "67478838-18b3-45f1-8452-79256a604348"
                }
            ]
        },
        {
            "id": "90af350e-6c1a-4851-9dd5-e6d9084c49bb",
            "name": "603 Twin Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "8d73200d-d874-4981-99b6-a9551976ec44",
                    "room_no": "603",
                    "room_id": "90af350e-6c1a-4851-9dd5-e6d9084c49bb"
                }
            ]
        },
        {
            "id": "fd478f93-a44e-45d3-abba-60d4a4f98cb4",
            "name": "701Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "3dea06aa-8c64-4cbb-aa08-2bb787cec733",
                    "room_no": "701",
                    "room_id": "fd478f93-a44e-45d3-abba-60d4a4f98cb4"
                }
            ]
        },
        {
            "id": "eabfff43-e1ed-4692-a8c5-6c56ed0bba0c",
            "name": "702Deluxe  Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "65baa115-78f4-450e-ae67-8d819f08f755",
                    "room_no": "702",
                    "room_id": "eabfff43-e1ed-4692-a8c5-6c56ed0bba0c"
                }
            ]
        },
        {
            "id": "bb100141-c65e-4da3-8a85-210baf86d1db",
            "name": "703 Twin Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "8f1c2d4e-0ac9-4ff0-8a7c-01e563af1495",
                    "room_no": "703",
                    "room_id": "bb100141-c65e-4da3-8a85-210baf86d1db"
                }
            ]
        },
        {
            "id": "9e2503b0-ee35-4162-8e50-721853a4adf8",
            "name": "801Deluxe Double Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "b7d10c06-0394-4387-b225-d0d4e358041a",
                    "room_no": "801",
                    "room_id": "9e2503b0-ee35-4162-8e50-721853a4adf8"
                }
            ]
        },
        {
            "id": "a95f3b84-662d-4bba-afd0-012c757f51da",
            "name": "802Deluxe Twin Room with Balcony",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "1a1dfc0d-2c26-4ba1-a73b-e2652390b7ee",
                    "room_no": "802",
                    "room_id": "a95f3b84-662d-4bba-afd0-012c757f51da"
                }
            ]
        },
        {
            "id": "d4e6323d-0922-44bf-86ce-c2be548831aa",
            "name": "803 Twin Room",
            "house": {
                "id": "d95cf4b3-a608-4d58-b685-9160391126be",
                "name": "CITYSTAY難波南",
                "property_type": "hotel",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "59120817-1f8b-42d7-bc72-31af6e3c2246",
                    "room_no": "803",
                    "room_id": "d4e6323d-0922-44bf-86ce-c2be548831aa"
                }
            ]
        },
        {
            "id": "e6920a6d-227d-45ec-b84b-2d17251c3a7b",
            "name": "Clover Heights 302",
            "house": {
                "id": "13f90e47-71d9-4a05-93b9-15532c1466f1",
                "name": "Clover Heights 302",
                "property_type": "apartment",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "52ab2318-6f8b-4632-a8e6-bc1d0adbe152",
                    "room_no": "302",
                    "room_id": "e6920a6d-227d-45ec-b84b-2d17251c3a7b"
                }
            ]
        },
        {
            "id": "4a3b9df0-c8b8-4a1b-a1a3-30d75373ffdf",
            "name": "Clover Heights201",
            "house": {
                "id": "09ea5e7a-41bc-420b-8735-52666016c92b",
                "name": "Clover Heights201",
                "property_type": "apartment",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "ef1072d3-87fb-42a9-bc07-f66a5042c322",
                    "room_no": "201",
                    "room_id": "4a3b9df0-c8b8-4a1b-a1a3-30d75373ffdf"
                }
            ]
        },
        {
            "id": "b18dfbc9-427b-48b7-9f1d-4c42106fcd33",
            "name": "joy",
            "house": {
                "id": "7b028e86-d918-459f-8bf0-36c25d361daf",
                "name": "joy",
                "property_type": "apartment",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "d00d904d-e564-4bc1-a338-298580c4a245",
                    "room_no": "401",
                    "room_id": "b18dfbc9-427b-48b7-9f1d-4c42106fcd33"
                }
            ]
        },
        {
            "id": "0d508b8e-202d-4583-8de2-e4d56c0791f7",
            "name": "嵐－松",
            "house": {
                "id": "b063dd79-ca13-4110-add0-be042ca1f828",
                "name": "嵐－松",
                "property_type": "apartment",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "6ec30776-2cc4-43e3-9a66-df7314d6d807",
                    "room_no": "4洋室+1和式",
                    "room_id": "0d508b8e-202d-4583-8de2-e4d56c0791f7"
                }
            ]
        },
        {
            "id": "a928635d-c028-4447-9349-460fea82e867",
            "name": "嵐－鶴橋",
            "house": {
                "id": "69d15610-2928-4744-8e91-774ec6acbd19",
                "name": "嵐－鶴橋",
                "property_type": "apartment",
                "turnover_days": 0
            },
            "room_units": [
                {
                    "id": "29ee54a4-d3f4-4617-846b-ca65e83c6386",
                    "room_no": "4洋室",
                    "room_id": "a928635d-c028-4447-9349-460fea82e867"
                }
            ]
        }
    ]
}
',
	true
);

$all_rooms_data = $all_rooms["data"];
foreach ($all_rooms_data as $room) {
	$room_ids[] = [
		"id" => $room["id"],
		"name" => $room["house"]["name"],
		"room_no" => $room["room_units"][0]["room_no"]
	];
}

return $room_ids;
}